-- GENERATED SPELL FOR [Greater Silithid Flayer] --


function spell0_15756(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13445,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15756', 15000, 1)
end

function spell1_15756(pUnit, Event) --@Terrifying Screech,Self--
pUnit:FullCastSpellOnTarget(6605,pUnit)
pUnit:RegisterEvent('Sorts_15756', 5500, 1)
end

function Sorts_15756(pUnit, Event)
local choix_sorts_15756 = math.random(0, 1)
if choix_sorts_15756 == 0 then
pUnit:RegisterEvent('spell0_15756', 1, 1)
end
if choix_sorts_15756 == 1 then
pUnit:RegisterEvent('spell1_15756', 1, 1)
end
end

function mob15756_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15756', math.random(1500, 3000), 1)
end

function mob15756_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15756_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15756_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15756, 1, 'mob15756_Action')
RegisterUnitEvent(15756, 2, 'mob15756_Leave')
RegisterUnitEvent(15756, 3, 'mob15756_Kill')
RegisterUnitEvent(15756, 4, 'mob15756_Die')
